package com.ksc.storekeeper.shared.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.ksc.storekeeper.shared.dto.ProductDTO;

@RemoteServiceRelativePath("product.rpc")
public interface ProductService extends RemoteService{
	void saveProduct(ProductDTO product);
	
	List<ProductDTO> searchProductByCategory(String categoryName);
	
	ProductDTO searchProductByCode(String code);
	
	List<ProductDTO> getAllProducts();
	
	ProductDTO getProductById(Long id);
}
